#include	<exception>
#include	<iostream>
#include	<iomanip>
#include	"Config.h"
#include	"compiler.h"

int main(int argc, char * argv[])
{
	std::cout << "Map Compiler by Erelis team" << std::endl;
	std::cout << "Copyright (c) 2007, Paulius Maruska & Arvydas Nauckunas" << std::endl;
	std::cout << std::endl;
	try
	{
		Config config(argc, argv);
		Compiler copmiler(config);
		return copmiler.Run();
		// (void)argc, (void)argv;
		// try to compile
		// note, input & output names should be read from argv!!!
	}
	catch(std::exception & e)
	{
		std::cout << "Error: " << e.what() << std::endl;
		return -1;
	}
}


